package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子对象 ic_posts
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
public class IcPosts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子ID */
    private Long postId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String title;

    /** 帖子内容 */
    @Excel(name = "帖子内容")
    private String content;

    /** 帖子查看次数 */
    @Excel(name = "帖子查看次数")
    private Long viewCount;

    /** 帖子回复数量 */
    @Excel(name = "帖子回复数量")
    private Long replyCount;

    /** 帖子点赞数量 */
    @Excel(name = "帖子点赞数量")
    private Long likeCount;

    /** 帖子踩的数量 */
    @Excel(name = "帖子踩的数量")
    private Long dislikeCount;

    /** 帖子状态0正常,1锁定 */
    @Excel(name = "帖子状态0正常,1锁定")
    private String status;

    /** 帖子是否置顶 */
    @Excel(name = "帖子是否置顶")
    private Integer isSticky;

    /** 帖子锁定原因 */
    @Excel(name = "帖子锁定原因")
    private String lockReason;

    /** 发帖时的IP地址 */
    @Excel(name = "发帖时的IP地址")
    private String ipAddress;

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setReplyCount(Long replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Long getReplyCount() 
    {
        return replyCount;
    }

    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }

    public void setDislikeCount(Long dislikeCount) 
    {
        this.dislikeCount = dislikeCount;
    }

    public Long getDislikeCount() 
    {
        return dislikeCount;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setIsSticky(Integer isSticky) 
    {
        this.isSticky = isSticky;
    }

    public Integer getIsSticky() 
    {
        return isSticky;
    }

    public void setLockReason(String lockReason) 
    {
        this.lockReason = lockReason;
    }

    public String getLockReason() 
    {
        return lockReason;
    }

    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("viewCount", getViewCount())
            .append("replyCount", getReplyCount())
            .append("likeCount", getLikeCount())
            .append("dislikeCount", getDislikeCount())
            .append("status", getStatus())
            .append("isSticky", getIsSticky())
            .append("lockReason", getLockReason())
            .append("ipAddress", getIpAddress())
            .toString();
    }
}
